tmem: cleanup: refactor function tmemc_shared_pool_auth()
authorBob Liu <lliubbo@gmail.com>
Tue, 28 Jan 2014 04:28:31 +0000 (12:28 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 9 Apr 2014 13:18:09 +0000 (09:18 -0400)
commitddaec70bec987969b3a8d4ee6c940fa22a2165e6
tree2d9074655a1f4ab274320eaf60758f2545e7c56e
parent6e1616dcb8871356d192ff497e410e912edb99be
tmem: cleanup: refactor function tmemc_shared_pool_auth()

Make function tmemc_shared_pool_auth() more readable.

Note that the previous check for free being set the first time
'(free == -1)' in the loop is now removed. That is OK because
when we set free the first time ('free = i;') we follow it
immediately with a break to get out of the loop.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c